<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:p="http://primefaces.org/ui" 
      xmlns:component="http://java.sun.com/jsf/composite/component">

    <ui:composition template="/resources/include/template.xhtml">

        <ui:define name="title">

            <h:outputText value="#{bundle.Bambole} - #{bundle.Address}"/>

        </ui:define>

        <ui:define name="body">

            <h:form>

                <ui:include src="/resources/include/menu.xhtml"/> 

                <p:panel header="#{addressController.currentOrganization.nameWithDisabledFormatting} : 
                         #{addressController.selected.enabled ? '' : ' ~ '}
                         #{bundle.Address} - #{bundle.View}
                         #{addressController.selected.enabled ? '' : ' ~ '}">

                    <component:toolbar

                        refreshButtonDisabled="true"           
                        saveButtonDisabled="true"

                        previousButtonDisabled="#{!addressController.hasPreviousRecord}"
                        nextButtonDisabled="#{!addressController.hasNextRecord}"            

                        returnButtonAction="#{addressController.prepareList}"
                        previousButtonAction="#{addressController.previousItem}"
                        nextButtonAction="#{addressController.nextItem}"            
                        createButtonAction="#{addressController.prepareCreate}"
                        editButtonAction="#{addressController.prepareEdit}"
                        searchButtonAction="#{addressController.prepareSearch}"
                        deleteButtonAction="#{addressController.destroy}"

                        additionalInfoButtonRendered="true"

                        /> 

                    <component:address

                        enabledDisabled="true"           
                        nameDisabled="true"
                        notesDisabled="true"
                        streetDisabled="true"
                        cityDisabled="true"
                        regionDisabled="true"
                        zipCodeDisabled="true"
                        countryDisabled="true"

                        />          

                </p:panel>

            </h:form>

        </ui:define>

    </ui:composition>

</html>
